package org.example;

import ch.qos.logback.core.ConsoleAppender;
import cn.hutool.core.util.RandomUtil;
import java.util.concurrent.TimeUnit;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

/**
 * @author : libo@juzishuke.com
 * @Title :
 * @Description :
 * @date : 2024/4/7 17:41
 * @since :1.0
 */
@Slf4j
public class MyConsoleAppender extends ConsoleAppender {


    @SneakyThrows
    @Override
    protected void subAppend(Object event) {
        TimeUnit.SECONDS.sleep(1);
        super.subAppend(event);
    }
}
